<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Green">
    <meta name="author" content="orangehat">


    <c:set value="${pageContext.request.contextPath}" var="path" scope="page"/>

    <link href="${path}/css/style.css" rel="stylesheet">

    <link href="http://cdn.staticfile.org/twitter-bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
    <link href="${path}/addon/bootstrapValidation/css/bootstrapValidator.css" rel="stylesheet">
    <link href="${path}/css/bootstrap-wysihtml5.css" rel="stylesheet">

    <script src="${path}/js/wysihtml5-0.3.0.min.js"></script>
    <script src="http://cdn.staticfile.org/jquery/2.1.1-rc2/jquery.min.js"></script>
    <script src="http://cdn.staticfile.org/twitter-bootstrap/3.1.1/js/bootstrap.min.js"></script>
    <script src="${path}/js/bootstrap3-wysihtml5.js"></script>
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->

    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->


    <title>消息列表</title>
</head>
<body style="background: url(${path}/images/background.png);">
<%@ include file="header.jsp" %>
<div class="container content">
    <div class="panel panel-info">
        <div class="panel-heading">
            <h3 class="panel-title">${msgDetail.title}</h3>
        </div>
        <div class="panel-body">
            ${msgDetail.details}
        </div>
        <div class="panel-footer">
            ${msgDetail.sendTime}
        </div>
    </div>
    <div class="clearfix"></div>

</div>
<form id="form" class="container reply-post-form" action="<c:url value="/sendMessage.html" />" method="post">
    <div class="form-group ">
        <input type="text" class="form-control" id="title" name="title" placeholder="标题">
    </div>
    <textarea class="textarea form-control" name="details" placeholder="输入回复内容 ..."
              style="width: 1140px; height: 200px">
    </textarea>
    <input type="hidden" name="userFrom" value="${msgDetail.userTo}"/>
    <input type="hidden" name="userTo" value="${msgDetail.userFrom}"/>
    <input class="submit-btn btn btn-primary btn-lg" type="submit" value="发布">
</form>
<%@ include file="footer.jsp" %>

<script>
    $('.textarea').wysihtml5();
</script>
<script type="text/javascript" charset="utf-8">
    $(prettyPrint);
</script>

<script src="http://cdn.staticfile.org/jquery/2.1.1-rc2/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/twitter-bootstrap/3.1.1/js/bootstrap.min.js"></script>
</body>
</html>